export default {
  squareMethods(state) {
    return state.number * state.number;
  },
  moreFilter(state) {
    return state.student.filter(s => s.age >= 33)
  },
  moreFilterLeg(state, getters) {
    return getters.moreFilter.length;
  },
  moreFilterAge(state) {
    return function (age) {
      return state.student.filter(s => s.age > age)
    }
  }
}
